package com.example.qx.lei;

import java.util.List;
import java.util.Timer;
import java.util.TimerTask;

public class time {
    private  static  time instance;
    private Timer timer;
    public time(){
        this.timer=timer;
    }
    public static synchronized time getInstance(){
        if(instance==null)
            instance=new time();
        return instance;

    }
    public Timer qidong(){
        timer = new Timer();
       return timer;


    }
    public void quxiao(){
          timer.cancel();
    }


}
